package com.tas.editor
{
	import mx.formatters.NumberFormatter;
	
	/**
	 * Constant values used throughout the movie editor
	 *  
	 * @author Alex Bevilacqua	 
	 */	
	[Bindable]
	public class Constants
	{
		public static const MIN_WIDTH  : uint = 800;
		public static const MIN_HEIGHT : uint = 600;
		
		private static var _formatter : NumberFormatter = new NumberFormatter();
		
		/**
		 * Utility function to format an object to a number with thousand
		 * seperation
		 *  
		 * @param value input value
		 * @return formatted output
		 * 
		 */		
		public static function formatNumber( value:Object ) : String
		{
			_formatter.useThousandsSeparator = true;
			
			return _formatter.format( value );
		}

	}
}